@echo off
setlocal

set "MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m"

:begin

:build_kassiopeia
echo.
echo ************************************************
echo ************ Building Kassiopeia ***************
echo ************************************************
echo.

call mvn clean eclipse:clean eclipse:eclipse install

:build_kassiopeia_gui
echo.
echo ************************************************
echo ********** Building Kassiopeia GUI *************
echo ************************************************
echo.

cd kassiopeia-gui
call grails upgrade --non-interactive
call grails war --non-interactive

echo.
echo.
echo Building Kassiopeia and Kassiopeia GUI done.
echo.

:end
endlocal